GBML manual / 3D

view3d_active

True while the 3D view is on.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_active() -> bool

Returns

bool

Description

True while the 3D view is on, false before view3d_start and after view3d_stop or a room change.

Example

if (view3d_active()) {
    view3d_turn(2);
}

The camera only turns while the view is on.

On the GBA

Cheap: it reads one flag.

See also: 3D viewview3d_startview3d_stop